From de3426acdd03df1758a197dc1e9a165e9303475d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Mon, 12 Mar 2007 01:45:17 +0000 Subject: [PATCH] go fishing for an existing fish for the source/destination combination * babl/babl-fish.c: (fishing_result_examine), (go_fishing), (babl_fish): go fishing for an existing fish for the source/destination combination before trying to create one. svn path=/trunk/; revision=227 --- babl/babl-fish.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/babl/babl-fish.c b/babl/babl-fish.c index c01de2a..5675ea8 100644 --- a/babl/babl-fish.c +++ b/babl/babl-fish.c @@ -78,9 +78,6 @@ fishing_result_examine (Babl *babl, return 0; /* continue iterating */ } -static int yes=0; -static int no=0; - static Babl * go_fishing (Babl *source, Babl *destination) @@ -92,18 +89,7 @@ go_fishing (Babl *source, data.destination = destination; data.ret = NULL; - babl_db_each (db, fishing_result_examine, &data); - - if (data.ret != NULL) - { - yes++; - } - else - { - no++; - } - return data.ret; } } -- 2.30.2